const INFO_KEY = 'sx_info'

//设置信息
export const setInfo =(info)=>{
	localStorage.setItem(INFO_KEY,JSON.stringify(info))
}

//获取信息
export const getInfo = () => {
	const result = localStorage.getItem(INFO_KEY)
	return result ? JSON.parse(result): null
}

//删除信息
export const removeInfo =()=>{
	localStorage.removeItem(INFO_KEY)
}